package com.android.billingclient.api;

import android.os.Bundle;
import android.os.Handler;
import android.os.ResultReceiver;
import c.a.a.a.a;
import com.android.billingclient.api.g;
import java.util.List;

final class k0 extends ResultReceiver {

    /* renamed from: b  reason: collision with root package name */
    private final /* synthetic */ d f2075b;

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    k0(d dVar, Handler handler) {
        super(handler);
        this.f2075b = dVar;
    }

    public final void onReceiveResult(int i, Bundle bundle) {
        k c2 = this.f2075b.f2040d.c();
        if (c2 == null) {
            a.k("BillingClient", "PurchasesUpdatedListener is null - no way to return the response.");
            return;
        }
        List<j> e = a.e(bundle);
        g.a b2 = g.b();
        b2.c(i);
        b2.b(a.g(bundle, "BillingClient"));
        c2.a(b2.a(), e);
    }
}
